package com.ysten.basic.common.utils.constant;

/**
 * <静态常量类>
 * 
 * @author 陆小凤
 * @version [1.0, 2015年7月17日]
 * @see [相关类/方法]
 * @since [管理系统]
 */
public final class Constant
{
    private Constant()
    {
    }
    
    /********************************** 操作日志常量 end **********************************/
    /**
     * 数值0
     */
    public static final Integer INTEGER_0 = 0;
    
    /**
     * 数值1
     */
    public static final Integer INTEGER_1 = 1;
    
    /**
     * LONG 0
     */
    public static final Long LONG_0 = 0L;
    
    /**
     * LONG 1
     */
    public static final Long LONG_1 = 1L;
    
    /**
     * LONG 2
     */
    public static final Long LONG_2 = 2L;
    
    /**
     * LONG 3
     */
    public static final Long LONG_3 = 3L;
    
    /**
     * 字符串0
     */
    public static final String STRING_0 = "0";
    
    /**
     * 字符串1
     */
    public static final String STRING_1 = "1";
    
    public static final String SEPARATOR_SEMICOLON_STRING = ";";
    
    /**
     * 排序操作类型 上移
     */
    public static final String OPERATION_TYPE_SORT_UP = "up";
    
    /**
     * 排序操作类型 置顶
     */
    public static final String OPERATION_TYPE_SORT_TOP = "top";
    
    /**
     * 排序操作类型 下移
     */
    public static final String OPERATION_TYPE_SORT_DOWN = "down";
    
    /**
     * 排序操作类型 置底
     */
    public static final String OPERATION_TYPE_SORT_BOTTOM = "bottom";
    
    /**
     * 重置排序
     */
    public static final String OPERATION_TYPE_SORT_RESET = "reset";
    
    /********************************** 栏目常量 begin **********************************/
    
    /**
     * JMS用户名
     */
    public static final String JMS_USER_NAME = "jms_username";
    
    /**
     * JMS密码
     */
    public static final String JSM_PWD = "jms_password";
    
    /**
     * JMS服务地址
     */
    public static final String JSM_URL = "jms_url";
    
    /******************************* 公共信息、基础对象名定义end ******************************/
    
    /**
     * 系统字典表信息
     */
    public static final String SYSTEMDIC = "SystemDic";
    
    /**
     * 系统文件分隔符
     */
    public static final String FILE_SER = "/";
    
    /**
     * 单引号
     */
    public static final String SINGLE_QUOTES = "'";
    
    /**
     * 分隔符 ;
     */
    public static final String SEP_SEMICOLON = ";";
    
    /**
     * 分隔符 ,
     */
    public static final String SEP_COMMA = ",";
    
    /**
     * 分隔符 1
     */
    public static final String SEP_FIRST = "1";
    
    /**
     * 分隔符 |
     */
    public static final String SEP_VERTICALLINE = "|";
    
    /**
     * 分隔符 _
     */
    public static final String SEP_UNDERLINE = "_";
    
    /**
     * 分隔符 /
     */
    public static final String SEP_VIRGULE = "/";
    
    /**
     * 分隔符 -
     */
    public static final String SEP_MINUS = "-";
    
    /**
     * SQL操作类型 EQ
     */
    public static final String SQL_OPERATOR_EQ = "EQ";
    
    /**
     * SQL操作类型 LIKE
     */
    public static final String SQL_OPERATOR_LIKE = "LIKE";
    
    /**
     * 超级管理员的权限Id
     */
    public static final Long ADMINROLE = 1L;
    
    /**
     * URL前缀
     */
    public static final String HTTP_PREFIX = "http://";
    
    /**
     * 上传海报存放相对路径
     */
    public static final String UPLOAD_DIR = "static/images/upload/poster";
    
    /******************************* 参数配置表key定义begin ******************************/
    /**
     * 节目集中小海报设置（中高，中宽，小高，小宽）
     */
    public static final String IMAGE_SIZE = "image_size";
    
    /**
     * 图片保存路径
     */
    // public static final String IMAGE_PATH = "image_path";
    
    /**
     * 图片显示路径
     */
    public static final String IMAGE_SERVER = "image_server";
    
    /**
     * 图片生成调用接口地址
     */
    public static final String POSTER_SERVER_URL = "poster_server_url";
    
    /**
     * 图片上传ftp host
     */
    public static final String IMAGE_FTPHOST = "image_ftpHost";
    
    /**
     * 图片上传ftp port
     */
    public static final String IMAGE_FTPPORT = "image_ftpPort";
    
    /**
     * 图片上传ftp用户名
     */
    public static final String IMAGE_FTPUSERNAME = "image_ftpUserName";
    
    /**
     * 图片上传ftp密码
     */
    public static final String IMAGE_FTPPASSWORD = "image_ftpPassword";
    
    /**
     * 调用生成小图片接口参数
     */
    public static final String FILEURI = "fileuri";
    
    /**
     * 调用生成小图片接口返回值
     */
    public static final String TRUE_STRING = "true";
    
    public static enum Table_OperationType
    {
        CREATE, UPDATE, DELETE
    }
    
    /**
     * redis相关
     */
    public static final String REDIS_URL = "baisc.redis.url";
    
    public static final String REDIS_PORT = "baisc.redis.port";
    
    public static final String REDIS_MAXIDLE = "baisc.redis.maxidle";
    
    public static final String REDIS_MAXACTIVE = "baisc.redis.maxactive";
    
    public static final String REDIS_EXPIRETIME = "baisc.redis.expiretime";
    
}
